import { get, put, del, post } from '@/api'

const api = {
  TYPES: 'api/pay/types',
  ADD_TYPE: '/api/pay/addtype',
  DEL_TYPE: '/api/pay/deltype',
  UPDATE_TYPE: '/api/pay/edit'
}
export const types = params => get(api.TYPES, params)
export const addType = data => post(api.TYPES, data)
export const delType = params => del(api.TYPES, params)
export const updateType = data => put(api.TYPES, data)
